Skip to content

chore: check the docs on every pull request - #186

Merged
armanist merged 6 commits into
stagingfrom
docs/ci-checks
Nov 21, 2026
Merged

armanist merged 6 commits into
stagingfrom
docs/ci-checks

Conversation

@armanist

Copy link
Copy Markdown
Collaborator

For #185 (not closed here: merges into staging close nothing).

Summary

A new workflow, .github/workflows/docs-check.yml, runs on every pull request into staging and master:

  • SUMMARY.md matches the pages (scripts/check-summary.mjs): every page SUMMARY.md links to exists, and every page under v3.0 is listed. Blocking.
  • Links and anchors (lychee 0.24.2, lychee.toml): links between the pages and the #heading anchors they point to; links to other sites are skipped. Blocking.
  • Markdown structure (markdownlint-cli2 0.18.1, .markdownlint-cli2.jsonc): all default rules except line length, and duplicate headings only among siblings. Blocking.
  • Wording (Vale 3.28.1, .vale.ini, .vale/): our own rules for names, history narration and filler words, plus spelling with a vocabulary of the framework's names. Warnings only, and only on the lines a pull request adds.

To start green:

  • SUMMARY.md lists "What is Quantum?" and "Why Quantum?" in a new "About Quantum" section. The website already showed them there through its own fallback; its sidebar is unchanged (same sections, each page once).
  • 60 pages, README.md and SUMMARY.md get the Markdown fixes: blank lines, list markers, trailing : in four headings, alt text for the README badges, ## instead of ### under the title of installation.md, and two bold lines in routing.md turned into headings.

AGENTS.md describes how to run the checks locally and when to use docs: or chore: in a commit message.

Changed paths

  • .github/workflows/docs-check.yml, scripts/check-summary.mjs
  • lychee.toml, .markdownlint-cli2.jsonc, .vale.ini, .vale/
  • AGENTS.md
  • SUMMARY.md (new "About Quantum" section, blank lines), README.md, 60 pages under v3.0

Testing

All four checks ran locally on the branch: no findings for the SUMMARY.md check, lychee and markdownlint. Each check was also run on a copy with a planted problem (a missing page, a wrong anchor, a misspelled name) and reported it. Vale reports 30 warnings on existing lines (filler words and history wording), which the pull request check does not show because it only looks at added lines.

@armanist
armanist merged commit aba92bb into staging Nov 21, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant